package com.cqsw.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Classname Rent
 * @Description TODO
 * @Date 2022/6/13 12:57
 * @Created by Smith.Liu
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Rent implements Serializable {
    private Integer id;
    private Integer uId;
    private String uName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rentTime;
    private String remark;
    private Double rentPrice;
    private Integer rentDuration;
    private List<Category> categories;
}
